home *** CD-ROM | disk | FTP | other *** search
- ; This script is designed to logon to a BBS using the Qmail door, enter
- ; Qmail, download a mail packet and then upload any waiting reply packets.
- ; Since PC-Board systems can change the name of the Qmail door (i.e One
- ; BBS may call it QM and another Qmail) a string has been added to the
- ; beginning of the script called MailDoor, before you run the script be sure
- ; to enter the name of the Qmail Door in the Quotes. In the example
- ; you will note that the name Qmail4 is used followed by ^M for pressing
- ; ENTER. Leave the ^M for enter in your quoted string!
- ;
- ; To operate properly you must enter your name and password in the
- ; QmodemPro phonebook entry.
- ;
- ;
- TurnON 8_BIT ; These Are Our Terminal Settings
- TurnOFF LINEFEED ; For This Session
- TurnOFF XON/XOFF
- TurnON NOISE
- TurnOFF MUSIC
- TurnON SCROLL
- TurnOFF PRINT
- TurnOFF SPLIT
- TurnON STATUSLN
- TurnOFF DOORWAY
-
- STRING MailDoor
- ;************************************
- Assign MailDoor "Qmail4^M" ; The Name Of The QMail Door For This
- ; PC-Board, change As Needed
- TimeOut 45
-
- When "Languages Avail" "1^M" ; This is For PC-Boards That Support
- ; Multi Languages, 1 Should Be The
- ; English Default.
-
- When "this correct" "Y^M" ; In Case It Verifies Your UserName
- When "More?" "n^M" ; In Case Of More? Prompts
- When "(Enter)" "^M" ; In Case Of Enter To Continue Prompts
- When "graphics (" "N^M" ; In Case Of Graphics Prompts
-
- WaitFor "first name" ; Waiting For First Name Prompt
- Delay 100
- Send "$USERID^M" ; Send Accounts UserId Name
-
- Waitfor "Password" ; Waiting For Password Prompt
- Delay 100
- Send "$PASSWORD^M" ; Send Account Password
-
- WaitFor "Board Command" ; Waiting For Main Menu Command
- Delay 100
- Send "$MailDoor" ; Send QMail Command
-
- WaitFor "Qmail Command" ; Wait For Qmail Prompt
-
- If $GETMAIL DOWNLOADMAIL ; If We Are Getting Mail
- DOWNFINISHED:
-
- IF $SENDMAIL UPLOADMAIL ; If We Are Sending Mail
-
- UPSUCCESS:
- TimeOut 30 EXITSYSTEM ; Reset Timeout
- DELETEF $REPPATH$PACKET.REP ; Delete .REP Packet
- WaitFor "Qmail Command" ; WaitFor Qmail Command
- Delay 100
- Send "G^M" ; Send Logoff Command
- Exit
-
- UPLOADMAIL: ; Upload Qwk Mail Routine
- TimeOut 60 ; Reset Our TimeOut
- Delay 100
- Send "U^M" ; Send Upload Command
- WaitFor "to upload" ; Wait For Upload Prompt
- Delay 500
- UPLOAD Z $REPPATH$PACKET.REP ; Start Upload Of .REP Packet
- IF $SUCCESS UPSUCCESS ; If Succesful then Goto UPSUCCESS
- GOTO UPLOADMAIL ; If Not Try Again
-
-
- DOWNLOADMAIL: ; Download Qwk Mail Routine
- When "no messages" DOWNFINISHED ; If No Messages Then Exit Routine
- TimeOut 500 ; Set Timeout For Message Searches
- Delay 100
- Send "D^M" ; Send Download Messages Command
- WaitFor "messages (Y" ; Wait For Recieve Prompt
- Delay 100
- Send "Y^M" ; Send Start QWK Compression Command
- WaitFor "to download" ; Wait For Download Start Prompt
- Delay 100
- DOWNLOAD Z $QWKPATH ; Download QWK Mail
- IF $SUCCESS DOWNFINISHED ; If Successful Goto DOWNFINISHED
- GOTO DOWNLOADMAIL ; If Not Try Again
-